package com.example.ceramics.entity;

import java.io.Serializable;

public class CartEntity implements Serializable {
    private String account;
    private int goodsId;
    private int num;
    private double price;
    private GoodsEntity goodsEntity;

    public CartEntity() {
    }

    public CartEntity(String account, int goodsId, int num, double price, GoodsEntity goodsEntity) {
        this.account = account;
        this.goodsId = goodsId;
        this.num = num;
        this.price = price;
        this.goodsEntity = goodsEntity;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public GoodsEntity getGoodsEntity() {
        return goodsEntity;
    }

    public void setGoodsEntity(GoodsEntity goodsEntity) {
        this.goodsEntity = goodsEntity;
    }
}
